<?php require_once('libraryfiles/config.php');?>
<?php require_once TMP_USER_PATH;?>
<div class="breadcrumb">
<a class="lever_1" style="z-index:100" href="<?php echo base_url; ?>"><?php echo $lang['HOME']; ?></a>
<a class="lever_2" style="z-index:99" href="#">Entertainment List</a>
</div>
<div class="row-fluid product-info">
<div class="span12 category">
	<div id="content">			
		<div class="title"><h1 class="category-title">Entertainment</h1></div>
		<div class="box-content">
		
			<div class="container-fluid">	
			  <div class="row-cols">
				<?php
			$Publish = 1;
            $sql = "SELECT * FROM " . Tblvdoyoutube::tblvdoyoutube . " WHERE " . Tblvdoyoutube::vdo_status . " =" . $Publish." ORDER BY id DESC";
            $result = mysql_query($sql);
            $numrows = mysql_num_rows($result);
			$i = 1;
            if ($numrows > 0) {
            	while ($rows = mysql_fetch_assoc($result)){
					if ($i % 3 == 1) {
						echo '<div class="row-fluid">';
					}
            		?>
					<div class="span4" >
						<iframe width="100%" height="260" src="//www.youtube.com/embed/<?php echo $rows[Tblvdoyoutube::vdo_ytb_id]; ?>?feature=player_detailpage" frameborder="0" allowfullscreen></iframe>
					</div>
			<?php
				if ($i % 3 == 0) {
						echo '</div>';
					}
					$i ++;
				}
			}

			?>
			</div>					
			</div>
	</div>
</div>
</div>
